<!DOCTYPE html>
<html>

<head>
    <title>{{title}}文章列表 {{if page>0}}-第{{page}}页{{/if}}- {{SITE_DOCMENT_TITLE}}</title>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <meta name="keywords" content="{{title}}" />
    <meta name="description" content="本栏目是关于{{title}}文章类的列表集合，网络上各种{{title}}相关内容免费在线阅读" />
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
    <link rel="stylesheet" type="text/css" href="/public/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="/public/main.css">
    <script src="/public/js/jquery.min.js"></script>
</head>

<body>
    {{ include "./header.html" }}
    <section class="container mt-20">
        <ol class="breadcrumb">
            当前位置：
            <li><a href="/">{{SITE_DOCMENT_TITLE}}首页</a></li>
            <li>{{title}}</li>
        </ol>

        <div class="row">
            <div class="col-lg-8">
                <div class="excerpts">
                    {{ each lists content }}
                    <article class="excerpt">
                        <a href="/content/{{ content.cid }}" class="focus"><img src="{{ content.thumb }}"
                                class="thumb"></a>
                        <h2><a href="/content/{{ content.cid }}">{{content.title}}</a></h2>
                        <time>{{content.createAt|dateFormat}}</time><a class="cat"
                            href="/category-{{ content.category.cid }}-page-0">{{content.category.name}}</a>
                        <p class="note hidden-xs ">
                            <a href="/content/{{ content.cid }}">
                                {{content.description}}
                            </a>
                        </p>
                    </article>
                    {{ /each}}
                    {{ if total > size }}
                    <nav>
                        <ul class="pager">
                            {{if page>0}}
                            <li><a href="/category-{{currentCategory.cid}}-page-{{page-1}}">上一页</a></li>
                            {{/if}}
                            {{ if total > size*(page+1) }}
                            <li><a href="/category-{{currentCategory.cid}}-page-{{page-0+1}}">下一页</a></li>
                            {{ /if }}
                        </ul>
                    </nav>
                    {{/if}}

                </div>
            </div>
            <aside class="col-lg-4">
                {{ include "./aside.html" }}
            </aside>
        </div>
    </section>
    <footer>
        {{ include "./footer.html" }}
    </footer>
</body>

</html>